package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: tradeRecord 
* @Description: 交易记录定义表
* @author eason
* @date 2017-01-22 18:34:39
*
 */
@Entity
@Table(name = "tb_xa_traderecord")
@ApiModel(value="交易记录定义表")
public class TradeRecord extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="用户id,用户id")
	private Long userId;
	@ApiModelProperty(value="交易金额,交易金额")
	private Double money;
	@ApiModelProperty(value="类型,类型(1:退款 2:提现)")
	private Integer type;
	@ApiModelProperty(value="订单号,订单号（可以为空）")
	private String orderNo;
		
	
	public void setUserId(Long userId){
		this.userId=userId;
	}
	
	@Column(nullable=true,length=50)
	public Long getUserId(){
		return userId;
	}
	public void setMoney(Double money){
		this.money=money;
	}
	
	@Column(nullable=true,length=50)
	public Double getMoney(){
		return money;
	}
	public void setType(Integer type){
		this.type=type;
	}
	
	@Column(nullable=true,length=50)
	public Integer getType(){
		return type;
	}
	public void setOrderNo(String orderNo){
		this.orderNo=orderNo;
	}
	
	@Column(nullable=true,length=50)
	public String getOrderNo(){
		return orderNo;
	}
		

}
